
package com.dgut.smart_house.withHardware;


import org.springframework.stereotype.Component;

@Component
public class SocketCompent {
    WithHardwareSocket hardwareSocket=new WithHardwareSocket();

    SocketCompent(){
        hardwareSocket.start();
    }

    public WithHardwareSocket getHardwareSocket() {
        return hardwareSocket;
    }

    public void setHardwareSocket(WithHardwareSocket hardwareSocket) {
        this.hardwareSocket = hardwareSocket;
    }

    public SocketCompent(WithHardwareSocket hardwareSocket) {
        this.hardwareSocket = hardwareSocket;
    }
}


